from PySide6.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel
from PySide6.QtCore import Qt

class EmptyPage(QWidget):
    def __init__(self, title="未实现页面"):
        super().__init__()
        self.title = title
        self.setup_ui()
        
    def setup_ui(self):
        self.setStyleSheet("background-color: #f0f0f0;")
        
        main_layout = QVBoxLayout(self)
        
        # 顶部标题栏
        title_bar = QWidget()
        title_bar.setStyleSheet("background-color: white;")
        title_layout = QHBoxLayout(title_bar)
        title_label = QLabel(self.title)
        title_label.setStyleSheet("font-size: 16px; font-weight: bold;")
        title_layout.addWidget(title_label)
        title_layout.addStretch()
        main_layout.addWidget(title_bar)
        
        # 内容区域
        content_widget = QWidget()
        content_widget.setStyleSheet("background-color: white; margin-top: 10px;")
        content_layout = QVBoxLayout(content_widget)
        
        content_label = QLabel(f"{self.title}功能正在开发中...")
        content_label.setStyleSheet("font-size: 14px; color: #666; padding: 20px;")
        content_label.setAlignment(Qt.AlignCenter)
        
        content_layout.addWidget(content_label)
        main_layout.addWidget(content_widget)
        main_layout.addStretch() 